package com.isoftstone.bank.service;

import com.isoftstone.common.Page;
import com.isoftstone.common.Tidings;
import com.isoftstone.common.entity.SysUser;
import com.isoftstone.merchant.entity.merchant.Merchant;
import com.isoftstone.util.PageData;

import java.util.List;

/**
 * Created by wlj on 2017/11/29.
 */
public interface IMerchantService {

    /**
     * 银行端，获取商户列表，进入页面
     * @param page
     * @return
     */
    List<Merchant> getMerchantlistPage(Page page);

    /**
     * 银行端禁用商户
     * @param corpId
     * 返回值：1：成功。0：不成功
     */
    int disableMerchant(String corpId,PageData pd);

    Tidings<String> updateMerchant(Merchant merchant, SysUser user, String remoteAddr) throws Exception;

    /**
     * 新增商户
     * @param merchant
     * @param user
     * @param remoteAddr
     * @return
     */
    Tidings<String> addMerchant(Merchant merchant, SysUser user, String remoteAddr) throws Exception;

    /**
     * 获取单个商户
     */
    Tidings<Merchant> getMerchantById(String corpId);
    /**
     * 获取所有商户
     * @param pageData
     */
    Tidings<List<Merchant>>  getAllMerchantList(PageData pageData) throws Exception;

    /**
     * 通过corpCode
     */
}
